package com.yulei.framework.ioc.entity;

import com.yulei.framework.ioc.annotation.DIbyName;
import com.yulei.framework.ioc.annotation.IocComponent;

/**
 * @author yulei
 * date 2023/11/22 13:17
 */
@IocComponent
public class Robot {
    // 需要注入hand和mouth
    @DIbyName
    private Hand hand;
    @DIbyName
    private Mouth mouth;

    public void show() {
        hand.waveHand();
        mouth.speak();
    }
}
